import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import Paging from "@feidao/widgets/fd-w000010";
export default async function a003(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	const v = fd.data.node.querySelector<HTMLInputElement>('[data-feidao-id="data-size"]').value;
	if (!v) {
		alert('请输入设置的每页数据条数');
	} else {
		const w = fd.data.node.querySelector<Paging>('[data-feidao-id="fd-w000010-001"]');
		w.setAttribute('size', v);
	}

	fd.data.node.querySelector<HTMLAreaElement>('[data-feidao-id="fd-w000010-003"]').innerHTML = `const v = fd.data.node.querySelector<HTMLInputElement>('[data-feidao-id="data-size"]').value;
if (!v) {
	alert('请输入设置的每页数据条数');
} else {
	const w = fd.data.node.querySelector<Paging>('[data-feidao-id="fd-w000010-001"]');
	w.setAttribute('size', v);
}`;
}
